<template>
  <div class="hello">
<h1>{{ msg }}</h1>
<div v-for="(column,index) in config.sites" :key="index">
    <h2>{{column.group}}</h2>
     <el-row :gutter="24">
       <el-col v-for="(item,index) in column.links" :key="index" :span="8" :offset="0">
         <a
          :href= "item.url"
          target="_blank"
        >
          {{item.name}}
        </a>
       </el-col>
     </el-row>
</div>
    <!-- <h2>常用文档类网站</h2>
    <el-row :gutter="24">
      <el-col :span="8" :offset="0">
        <a
          href="http://docs.microsoft.com"
          target="_blank"
        >
          微软开发文档
        </a>

      </el-col>
      <el-col :span="8" :offset="0">
        <a
          href="https://dotnetchina.gitee.io/furion"
          target="_blank"
        >
          furion开发文档
        </a>
      </el-col>
      <el-col :span="8" :offset="0">
         <a
          href="https://element.eleme.cn/#/zh-CN"
          target="_blank"
        >
          elemrnt-ui开发文档
        </a>
      </el-col>
    </el-row>
    <h2>图片类网站</h2>
    <el-row :gutter="24">
      <el-col :span="8" :offset="0">
        <a href="https://unsplash.com/t/wallpapers" target="_blank">unsplash</a>
      </el-col>
      <el-col :span="8" :offset="0">
        <a href="http://wallls.com/" target="_blank">wallls</a>
      </el-col>
      <el-col :span="8" :offset="0">
        <a href="https://wallhere.com/" target="_blank">wallhere</a>
      </el-col>
    </el-row> -->
    </div>
</template>

<script>
var config = require('../../config.json')
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: '欢迎使用宝藏导航',
      config: config
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.hello{
  padding: 30px;
}
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0,10px;
}
a {
  color: #42b983;
}
</style>
